const age: null | undefined = 19;

const isAdult = age !== null ? age >= 18 : false;
console.log(isAdult);

// 挑战
for (let i = 0; i <= 100; i++) {
  /* switch (true) {
    case i % 3 === 0 && i % 5 === 0:
      console.log("FizzBuzz");
      break;

    case i % 3 === 0: {
      console.log("Fizz");
      break;
    }

    case i % 5 === 0: {
      console.log("Buzz");
      break;
    }

    default:
      console.log(i);
  }*/
  console.log(
    i % 3 === 0 && i % 5 === 0
      ? "FizzBuzz"
      : i % 3 === 0
      ? "Fizz"
      : i % 5 === 0
      ? "Buzzi"
      : i
  );
}
